<?xml version="1.0" encoding="iso-8859-1" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content=
    "application/xhtml+xml; charset=iso-8859-1" />
    <title>
      Nano-4.9.1
    </title>
    <link rel="stylesheet" type="text/css" href="../stylesheets/lfs.css" />
    <meta name="generator" content="DocBook XSL Stylesheets V1.78.1" />
    <link rel="stylesheet" href="../stylesheets/lfs-print.css" type=
    "text/css" media="print" />
  </head>
  <body class="blfs" id="blfs-2020-04-02">
    <div class="navheader">
      <h4>
        Beyond Linux<sup>�</sup> From Scratch <span class="phrase">(System
        V</span> Edition) - Version 2020-04-02
      </h4>
      <h3>
        Chapter&nbsp;6.&nbsp;Editors
      </h3>
      <ul>
        <li class="prev">
          <a accesskey="p" href="mousepad.html" title=
          "Mousepad-0.4.2">Prev</a>
          <p>
            Mousepad-0.4.2
          </p>
        </li>
        <li class="next">
          <a accesskey="n" href="vim.html" title="Vim-8.2.0190">Next</a>
          <p>
            Vim-8.2.0190
          </p>
        </li>
        <li class="up">
          <a accesskey="u" href="editors.html" title=
          "Chapter&nbsp;6.&nbsp;Editors">Up</a>
        </li>
        <li class="home">
          <a accesskey="h" href="../index.html" title=
          "Beyond Linux� From Scratch     (System V Edition) - Version 2020-04-02">
          Home</a>
        </li>
      </ul>
    </div>
    <div class="sect1" lang="en" xml:lang="en">
      <h1 class="sect1">
        <a id="nano" name="nano"></a>Nano-4.9.1
      </h1>
      <div class="package" lang="en" xml:lang="en">
        <h2 class="sect2">
          Introduction to Nano
        </h2>
        <p>
          The <span class="application">Nano</span> package contains a small,
          simple text editor which aims to replace <span class=
          "application">Pico</span>, the default editor in the <span class=
          "application">Pine</span> package.
        </p>
        <p>
          This package is known to build and work properly using an LFS-9.1
          platform.
        </p>
        <h3>
          Package Information
        </h3>
        <div class="itemizedlist">
          <ul class="compact">
            <li class="listitem">
              <p>
                Download (HTTP): <a class="ulink" href=
                "https://www.nano-editor.org/dist/v4/nano-4.9.1.tar.xz">https://www.nano-editor.org/dist/v4/nano-4.9.1.tar.xz</a>
              </p>
            </li>
            <li class="listitem">
              <p>
                Download MD5 sum: ee6a4d39ce2d16b597e234666913d0a2
              </p>
            </li>
            <li class="listitem">
              <p>
                Download size: 1.5 MB
              </p>
            </li>
            <li class="listitem">
              <p>
                Estimated disk space required: 23 MB
              </p>
            </li>
            <li class="listitem">
              <p>
                Estimated build time: 0.3 SBU
              </p>
            </li>
          </ul>
        </div>
        <p class="usernotes">
          User Notes: <a class="ulink" href=
          "http://wiki.linuxfromscratch.org/blfs/wiki/Nano">http://wiki.linuxfromscratch.org/blfs/wiki/Nano</a>
        </p>
      </div>
      <div class="installation" lang="en" xml:lang="en">
        <h2 class="sect2">
          Installation of Nano
        </h2>
        <p>
          Install <span class="application">Nano</span> by running the
          following commands:
        </p>
        <pre class="userinput">
<kbd class="command">./configure --prefix=/usr     \
            --sysconfdir=/etc \
            --enable-utf8     \
            --docdir=/usr/share/doc/nano-4.9.1 &amp;&amp;
make</kbd>
</pre>
        <p>
          This package does not come with a test suite.
        </p>
        <p>
          Now, as the <code class="systemitem">root</code> user:
        </p>
        <pre class="root">
<kbd class="command">make install &amp;&amp;
install -v -m644 doc/{nano.html,sample.nanorc} /usr/share/doc/nano-4.9.1</kbd>
</pre>
      </div>
      <div class="commands" lang="en" xml:lang="en">
        <h2 class="sect2">
          Command Explanations
        </h2>
        <p>
          <em class="parameter"><code>--enable-utf8</code></em>: This switch
          enables unicode support in <span class="application">Nano</span>.
        </p>
      </div>
      <div class="configuration" lang="en" xml:lang="en">
        <h2 class="sect2">
          Configuring nano
        </h2>
        <div class="sect3" lang="en" xml:lang="en">
          <h3 class="sect3">
            <a id="nano-config" name="nano-config"></a>
          </h3>
          <h4 class="title">
            <a id="nano-config" name="nano-config"></a>Config Files
          </h4>
          <p>
            <code class="filename">/etc/nanorc</code> and <code class=
            "filename">~/.nanorc</code>
          </p>
        </div>
        <div class="sect3" lang="en" xml:lang="en">
          <h3 class="sect3"></h3>
          <h4 class="title">
            <a id="idm140006462874160" name=
            "idm140006462874160"></a>Configuration Information
          </h4>
          <p>
            Example configuration (create as a system-wide <code class=
            "filename">/etc/nanorc</code> or a personal <code class=
            "filename">~/.nanorc</code> file)
          </p>
          <pre class="screen">
<code class="literal">set autoindent
set constantshow
set fill 72
set historylog
set multibuffer
set nohelp
set positionlog
set quickblank 
set regexp
set suspend</code>
</pre>
          <p>
            Check the <code class="filename">sample.nanorc</code> file in the
            installed documentation directory. It includes color
            configurations and has some documentation included in the
            comments.
          </p>
          <p>
            Syntax highlighting is provided for several file types, in
            <code class="filename">/usr/share/nano/</code> directory. E.g.,
            for shell scripts, you can insert <code class="option">include
            /usr/share/nano/sh.nanorc</code> in the personal or global
            configuration file. If you wish highlighting for all supported
            files, use <code class="option">include
            /usr/share/nano/*.nanorc</code>.
          </p>
        </div>
      </div>
      <div class="content" lang="en" xml:lang="en">
        <h2 class="sect2">
          Contents
        </h2>
        <div class="segmentedlist">
          <div class="seglistitem">
            <div class="seg">
              <strong class="segtitle">Installed Programs:</strong>
              <span class="segbody">nano and rnano (symlink)</span>
            </div>
            <div class="seg">
              <strong class="segtitle">Installed Libraries:</strong>
              <span class="segbody">None</span>
            </div>
            <div class="seg">
              <strong class="segtitle">Installed Directories:</strong>
              <span class="segbody">/usr/share/nano and
              /usr/share/doc/nano-4.9.1</span>
            </div>
          </div>
        </div>
        <div class="variablelist">
          <h3>
            Short Descriptions
          </h3>
          <table border="0" class="variablelist">
            <colgroup>
              <col align="left" valign="top" />
              <col />
            </colgroup>
            <tbody>
              <tr>
                <td>
                  <p>
                    <a id="nano-prog" name="nano-prog"></a><span class=
                    "term"><span class=
                    "command"><strong>nano</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    is a small, simple text editor which aims to replace
                    <span class="application">Pico</span>, the default editor
                    in the <span class="application">Pine</span> package.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="rnano-prog" name="rnano-prog"></a><span class=
                    "term"><span class=
                    "command"><strong>rnano</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    is a restricted mode for <span class=
                    "command"><strong>nano</strong></span>.
                  </p>
                </td>
              </tr>
            </tbody>
          </table>
        </div>
      </div>
      <p class="updated">
        Last updated on 2020-04-02 01:10:51 -0500
      </p>
    </div>
    <div class="navfooter">
      <ul>
        <li class="prev">
          <a accesskey="p" href="mousepad.html" title=
          "Mousepad-0.4.2">Prev</a>
          <p>
            Mousepad-0.4.2
          </p>
        </li>
        <li class="next">
          <a accesskey="n" href="vim.html" title="Vim-8.2.0190">Next</a>
          <p>
            Vim-8.2.0190
          </p>
        </li>
        <li class="up">
          <a accesskey="u" href="editors.html" title=
          "Chapter&nbsp;6.&nbsp;Editors">Up</a>
        </li>
        <li class="home">
          <a accesskey="h" href="../index.html" title=
          "Beyond Linux� From Scratch     (System V Edition) - Version 2020-04-02">
          Home</a>
        </li>
      </ul>
    </div>
  </body>
</html>
